package com.mes.rule.core.domain;

/**
 * ����Ĺ�������Ϣ����Ҫ��������д��������
 * 
 * @author nk
 */
public class RulePublic
{
	/**
	 * ͳ�ƹ�����õĴ���
	 * 
	 * @return ������ô����Ĺ�������
	 */
	public static String getStatisticsTimes(String ruleId)
	{
		StringBuffer message = new StringBuffer();

		message.append("              globalMap.put(\"" + ruleId
				+ "\", globalMap.get(\"" + ruleId
				+ "\") == null ? 1 : (Integer) globalMap.get(\"" + ruleId
				+ "\") + 1);\n");

		return message.toString();
	}

	public static void main(String[] args)
	{
		System.out.println(getStatisticsTimes("rule01"));
	}
}
